<script type="text/javascript" language="javascript" src="/gaf/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/gaf/css/base.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/common.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/table_def.css" />
<p>景区管理/添加景区门票</p>
<?php require_once('views/msg.phtml');?>
<form action="/scenic/scenic/doaddticket">
	<input type="hidden" id="sid" name="sid" value="<?php echo $this->sid;?>">
	<table>
		<tr><td>门票名称:<input type="text" id="name" name="name">
		门票类型一:<select id="type" name="type">
			<option value="0">普通票</option>
			<option value="1">电子票</option>										
		</select>
		门票类型二:<select id="ptype" name="ptype">
			<option value="0">成人票</option>
			<option value="1">儿童票</option>
			<option value="2">老人票</option>	
			<option value="3">学生票</option>		
			<option value="4">军人票</option>									
		</select>
		</td></tr>
		<tr><td>
		是否旺季:<select id="season" name="season">
			<option value="0">淡季票</option>
			<option value="1">旺季票</option>									
		</select>
		</select>
		价格类型:<select id="pricetype" name="pricetype">
			<option value="0">门市价</option>
			<option value="1">会员价</option>
			<option value="2">持卡价</option>									
		</select>
		</td></tr>
		<tr><td>
		是否推荐:<select id="recommend" name="recommend">
				<option value="0">不推荐</option>
				<option value="1">推荐</option>
		</select>
		</td></tr>
		<tr><td>
		门票原价:<input id="price" name="price"></input>
		</td></tr>
		<tr><td>
		实际价格:<input id="realprice" name="realprice"></input>
		</td></tr>
		<tr><td>
		门票说明:<input id="memo" name="memo"></input>
	</table>
	<div >
		<p>门票详细说明:</p>
		<p><textarea  title="门票详细说明" id="memodetail" name="memodetail" style="overflow:scroll;height:120;width:450"></textarea></p>
		<p><input type="submit" value="添加门票"></p>
	</form>
	<p>门票列表:</p>
<?php
	$sid=$this->sid;
	echo $this->ArrayGrid($this->ticketlist,$this->page,20,
		 		array('name'=>'票名','type'=>'景区等级','type'=>'票类一','ptype'=>'票类二','pricetype'=>'价格类型','season'=>'票季','realprice'=>'实际价格','recommend'=>'推荐','state'=>'状态'),
				array(	
					'act_title' => '操作','act_key'=>'tid',
		 			'act_list'  => array(
		 					array(
		 						'title'=>'查看修改',
		 						'url'=>'/scenic/scenic/getticket',
		 						),
		 					array(
		 						'title'=>'删除',
		 						'url'=>'/scenic/scenic/delticket/sid/'.$sid,
		 						),
		 					array(
		 						'title'=>'启用',
		 						'url'=>'/scenic/scenic/enableticket/sid/'.$sid,
		 						),
		 					array(
		 						'title'=>'失效',
		 						'url'=>'/scenic/scenic/disableticket/sid/'.$sid,
		 						),
		 			)
				),
				array(
					'ptype'=>array('0'=>'成人票','1'=>'儿童票','2'=>'老人票','3'=>'军人票','4'=>'学生票'),
					'pricetype'=>array('0'=>'门市价','1'=>'会员价','2'=>'持卡价'),
					'season'=>array('0'=>'淡季','1'=>'旺季'),
					'state'=>array('0'=>'创建','1'=>'启用','2'=>'禁用'),
					'recommend'=>array('0'=>'不推荐','1'=>'推荐'),
					'type'=>array('0'=>'普通票','1'=>'电子票'),
					'type'=>array('0'=>'创建','1'=>'生效','2'=>'失效'),
				)	
			 );
?>